package com.domain;

import javax.validation.constraints.NotNull;
import lombok.Data;

/**
*@Author: 喻晓涵
*@CreateTime: 2025-08-05
*@Description: ${description}
*@Version: 1.0
*/


/**
 * 试卷题目关联表
 */
@Data
public class ExamQuestion implements java.io.Serializable{
    /**
    * 主键ID
    */
    @NotNull(message = "主键ID不能为null")
    private Long id;

    /**
    * 关联的试卷ID
    */
    @NotNull(message = "关联的试卷ID不能为null")
    private Long examId;

    /**
    * 关联的问题ID
    */
    @NotNull(message = "关联的问题ID不能为null")
    private Long questionId;

    /**
    * 该题得分
    */
    @NotNull(message = "该题得分不能为null")
    private Integer score;

    /**
    * 题目在试卷中的顺序
    */
    @NotNull(message = "题目在试卷中的顺序不能为null")
    private Integer sequence;

    // Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getExamId() {
        return examId;
    }

    public void setExamId(Long examId) {
        this.examId = examId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }
    @Override
    public String toString() {
        return "ExamQuestion{" +
        "id=" + id +
        ", examId=" + examId +
        ", questionId=" + questionId +
        ", score=" + score +
        ", sequence=" + sequence +
        "}";
    }
}